#include <REGX52.H>
#include "MatrixLED.h"

unsigned char arr[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x81,0x81,0xFF,0x81,0x81,0x00,0x00,
0xFF,0x01,0x01,0x01,0x3C,0x42,0x42,0x42,
0x42,0x3C,0x00,0x40,0x30,0x0C,0x02,0x0C,
0x30,0x40,0x7C,0x92,0x92,0x92,0x72,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

void main()
{
	unsigned char i=0,offset=0,count=0;
	MatrixLED_Init();
	while(1)
	{
		for(i=0;i<8;i++)
		{
			MatrixLED_ShowColumn(i,arr[i+offset]);
		}
		count++;
		if(count>10)
		{
			offset++;
			count=0;
			if(offset>40)
			{
				offset=0;
			}
		}
	}
}